/*
 * @Author       : xiangmin
 * @File         : 设置页面title
 * @Date         : 2023-06-16 12:48:35
 * @LastEditors  : xiangmin
 * @LastEditTime : 2024-04-26 10:04:18
 */

import { useHomeStore } from '@/store'

export default function (title: string) {
	const homeStore = useHomeStore()
	homeStore.pageTitle = title
	onUnmounted(() => (homeStore.pageTitle = ''))
}
